﻿using Prism.Services.Dialogs;
using System;
using System.Windows;

namespace Base.ModuleBase.Dialogs.Views
{
    /// <summary>
    /// Interaction logic for DialogWindow.xaml
    /// </summary>
    public partial class DialogWindow : Window, IDialogWindow
    {
        public IDialogResult Result { get; set; }

        public DialogWindow()
        {
            InitializeComponent();
            Owner = Application.Current?.MainWindow;
            Topmost = true;
        }

        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);
            Application.Current.MainWindow.Focus();
        }
    }
}
